package com.maimao.model.user.input;

import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * @author MaoLin Wang
 * @date 2021/4/25 下午6:09
 */
public class EmailInput {

    @NotBlank(message = "邮箱地址不能为空")
    private String email;

    private String code;

    /**
     * 是否使用用户默认邮箱 登录后邮箱验证操作使用用户默认邮箱
     */
    private boolean defaultEmail;

    public boolean isDefaultEmail() {
        return defaultEmail;
    }

    public void setDefaultEmail(boolean defaultEmail) {
        this.defaultEmail = defaultEmail;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    @Override
    public String toString() {
        return "EmailInput{" +
                "email='" + email + '\'' +
                ", code='" + code + '\'' +
                '}';
    }
}
